package cn.liuhuan1.redis.controller;

import cn.liuhuan1.api.CacluFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EurekaDiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


/**
 * @Auther: liuhuan
 * @Date: 2021/1/21 - 01 - 21 - 8:57
 * @Description:
 * @version: 1.0
 */
@RestController
@RequestMapping
public class TestCollection {

    @Autowired
    private CacluFeignClient cacluFeignClient;

    @RequestMapping(value = "/caclulate",method = RequestMethod.GET)
    public String code(){
        System.out.println("shaodiao");
        String caclulate = cacluFeignClient.caclulate();
        return "caclulate";
    }

}


